package mdm.led.service;

import java.util.List;

import mdm.led.entity.User;
import mdm.led.entity.UserApp;
import mdm.led.entity.UserAppPassword;


public interface UserService {

    User selectByUsername(String username) throws Exception;
    
    User selectByRolePermission(Integer cUserId);
    
    List<User> selectByCondition(User user) throws Exception;
    
    void add(User user) throws Exception;
    
    void addApp(UserApp user) throws Exception;
    
    void modify(User user) throws Exception;
    
    void modifyApp(UserAppPassword user) throws Exception;
    
//    void modifyStatus(User user) throws Exception;
    User selectById(Integer cUserId);
    
    List<User> selectByRoleId(Integer cUserId);
    
    /**
     * 禁用启用用户
     * @param userID
     * @param state
     * @return
     */
    Integer updateState(Integer userID,Integer state);
    
    /**
	 * 根据部门ID 查询部门人
	 * @return
	 */
	List<User> findDepartmentUserByID(Integer departmentID,String jobnumber);
    
}
